# Copyright 2008 Ryan Whaley
# This file is part of gradient.
# 
# gradient is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# 
# gradient is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with gradient.  If not, see <http://www.gnu.org/licenses/>.


import view.semester
import view.course
import view.assignment
from django.conf.urls.defaults import *

urlpatterns = patterns(
    '',
    (r'^$', 'views.mainPage'),
    (r'^courses/(\d+)$', 'view.course.listAll'),
    (r'^newCourse$', 'view.course.new'),
    (r'^viewCourse/(\d+)$', 'view.course.view'),
    (r'^deleteCourse/(\d+)$', 'view.course.delete'),
    (r'^editCourse/(\d+)$', 'view.course.edit'),
    (r'^addAssignment$', 'view.assignment.new'),
    (r'^editAssignment/(\d+)$', 'view.assignment.edit'),
    (r'^deleteAssignment/(\d+)$', 'view.assignment.delete'),
    (r'^addSemester$', 'view.semester.add'),
    (r'^deleteSemester/(\d+)$', 'view.semester.delete'),
    )
